<html><head><title>CreateBillboardGroup</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CreateBillboardGroup()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>CreateBillboardGroup</b></font>(#BillboardGroup, MaterialID, DefaultBillboardWidth, DefaultBillboardHeight [, x, y, z [, VisibilityMask [, Type]]])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Creates a new empty billboard group. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#BillboardGroup</i></td>
<td width="90%"> 
The number to identify the new billboard group. <a href="../reference/purebasic_objects.html">#PB_Any</a> can 
be used to auto-generate this number. 

</td></tr>
<tr><td><i>MaterialID</i></td>
<td> 
The material to use for all billboards added to this group, using the 
<a href="addbillboard.html">AddBillboard()</a> function. To get a valid material id use <a href="../material/materialid.html">MaterialID()</a>. 

</td></tr>
<tr><td><i>DefaultBillboardWidth</i></td>
<td> 
The default width (in world units) of billboards added to this group. 
Although the size of each billboard can be set separately with the <a href="resizebillboard.html">ResizeBillboard()</a> 
function, it is important to keep in mind that it will have a negative impact on performance 
if all billboards are not the same size. 

</td></tr>
<tr><td><i>DefaultBillboardHeight</i></td>
<td> 
The default height (in world units) of billboards added to this group. 
Although the size of each billboard can be set separately with the <a href="resizebillboard.html">ResizeBillboard()</a> 
function, it is important to keep in mind that it will have a negative impact on performance 
if all billboards are not the same size. 

</td></tr>
<tr><td><i>x, y, z (optional)</i></td>
<td> 
The absolute position of the new billboard group in the world. 

</td></tr>
<tr><td><i>VisibilityMask (optional)</i></td>
<td> 
A mask to select on which <a href="../camera/index.html">camera</a> the billboard group should be displayed. If this mask match the mask specified in 
<a href="../camera/createcamera.html">CreateCamera()</a>, the billboard group will be displayed on the camera. See <a href="../entity/createentity.html">CreateEntity()</a> to build correct masks. 
If this parameter is omitted or set to <font color="#924B72">#PB_All</font>, then the billboard group will be visible on all cameras. 

</td></tr>
<tr><td><i>Type (optional)</i></td>
<td> 
The billboard type. It can be one of the following values: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Billboard_Point</font>: standard point billboard, always faces the camera completely and is always upright (default).
  <font color="#924B72">#PB_Billboard_Oriented</font>: billboards are oriented around a shared direction vector (used as Y axis) and only rotate around this to face the camera.
  <font color="#924B72">#PB_Billboard_SelfOriented</font>: billboards are oriented around their own direction vector (their own Y axis) and only rotate around this to face the camera.
  <font color="#924B72">#PB_Billboard_Perpendicular</font>: billboards are perpendicular to a shared direction vector (used as Z axis, the facing direction) and X, Y axis are determined by a shared up-vector.
  <font color="#924B72">#PB_Billboard_SelfPerpendicular</font>: billboards are perpendicular to their own direction vector (their own Z axis, the facing direction) and X, Y axis are determined by a shared up-vector.
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns zero if the billboard group can't be created. If <a href="../reference/purebasic_objects.html">#PB_Any</a> is used 
as '#BillboardGroup' parameter, the new billboard group number is returned. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="freebillboardgroup.html">FreeBillboardGroup()</a>, <a href="addbillboard.html">AddBillboard()</a>, <a href="billboardgroupcommondirection.html">BillboardGroupCommonDirection()</a>, <a href="billboardgroupcommondirection.html">BillboardGroupCommonDirection()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=countbillboards.html>CountBillboards()</a> - <a href="index.html">Billboard Index</a> - <a href="freebillboardgroup.html">FreeBillboardGroup()</a> -><br><br>

</body></html>